<?php $row_format = $form->getWidgetSchema()->getFormFormatter()->getRowFormat() ?>


<?php $method = "get" . sfInflector::camelize($field) ?>

<?php if (substr($field, -2) == 'id' && ($field != 'id')): ?>
  <?php $method = substr($method, 0, -2); ?>
<?php endif; ?>

<?php if (($Reclamo->$method() != "") && $field != 'id'  && $field != 'es0800' && $field != 'updated_at'): ?>


<?php if ($field  == 'condicion_del_reclamante'): ?>
<?php
  echo strtr($row_format, array(
    "%label%" => isset($form[$field]) ? $form[$field]->renderLabel() : __(sfInflector::humanize($field), array(), "messages"),
    "%error%" => "",
    "%field%" => Condicion::toString($Reclamo->$method()),
    "%help%" => isset($form[$field]) ? $form[$field]->renderHelp() : "",
    "%hidden_fields%" => ""
  ))  ?>


<? elseif ($field  == 'legajo_cau'): ?>
<?php
  echo strtr($row_format, array(
    "%label%" => isset($form[$field]) ? 'Legajo AU por el cual se reclama' : __(sfInflector::humanize($field), array(), "messages"),
    "%error%" => "",
    "%field%" => $Reclamo->getLegajoCauCompleto(),
    "%help%" => isset($form[$field]) ? $form[$field]->renderHelp() : "",
    "%hidden_fields%" => ""
  ))  ?>

<? elseif ($field  == 'nro_reclamo'): ?>
<?php

  echo strtr("<tr>\n  <th>%label%</th>\n  <td>%error% <h1>%field% </h1>%help%%hidden_fields%</td>\n</tr>\n", array(
    "%label%" => isset($form[$field]) ? $form[$field]->renderLabel() : __(sfInflector::humanize($field), array(), "messages"),
    "%error%" => "",
    "%field%" => $Reclamo->getNroReclamoCompleto(),
    "%help%" => isset($form[$field]) ? $form[$field]->renderHelp() : "",
    "%hidden_fields%" => ""
  ))  ?>


<? elseif ($field  == 'estado'): ?>
<?php
  echo strtr($row_format, array(
    "%label%" => isset($form[$field]) ? $form[$field]->renderLabel() : __(sfInflector::humanize($field), array(), "messages"),
    "%error%" => "",
    "%field%" => Estado0800::toString($Reclamo->$method()),
    "%help%" => isset($form[$field]) ? $form[$field]->renderHelp() : "",
    "%hidden_fields%" => ""
  ))  ?>

<? elseif ($field  == 'created_at'): ?>
<?php
  echo strtr($row_format, array(
    "%label%" => isset($form[$field]) ? $form[$field]->renderLabel() : __(sfInflector::humanize($field), array(), "messages"),
    "%error%" => "",
    "%field%" => $Reclamo->$method('d-m-Y'),
    "%help%" => isset($form[$field]) ? $form[$field]->renderHelp() : "",
    "%hidden_fields%" => ""
  ))  ?>
<? elseif ($field  == 'fecha_finalizacion'): ?>
<?php
  echo strtr($row_format, array(
    "%label%" => isset($form[$field]) ? $form[$field]->renderLabel() : __(sfInflector::humanize($field), array(), "messages"),
    "%error%" => "",
    "%field%" => $Reclamo->$method('d-m-Y'),
    "%help%" => isset($form[$field]) ? $form[$field]->renderHelp() : "",
    "%hidden_fields%" => ""
  ))  ?>
<? elseif ($field  == 'es_primera_instancia'): ?>
<?php
  echo strtr($row_format, array(
    "%label%" => isset($form[$field]) ? $form[$field]->renderLabel() : __(sfInflector::humanize($field), array(), "messages"),
    "%error%" => "",
    "%field%" => $Reclamo->getPrimeraInstanciaStr(),
    "%help%" => isset($form[$field]) ? $form[$field]->renderHelp() : "",
    "%hidden_fields%" => ""
  ))  ?>



<? else: ?>
  <?php
  echo strtr($row_format, array(
    "%label%" => isset($form[$field]) ? $form[$field]->renderLabel() : __(sfInflector::humanize($field), array(), "messages"),
    "%error%" => "",
    "%field%" => $Reclamo->$method(),
    "%help%" => isset($form[$field]) ? $form[$field]->renderHelp() : "",
    "%hidden_fields%" => ""
  ))  ?>
<?php endif; ?>
<?php endif; ?>